package com.navajo.web.core;

import org.springframework.context.ApplicationEvent;


public class NotificationEvent<T> extends ApplicationEvent {
    private String name;
    private T      publisher;


    private Events event;
    





    public Events getEvent() {
        return event;
    }



    public NotificationEvent(Events event, T publisher, Object source) {
        super(source);
        this.publisher = publisher;
        this.event = event;
    }



    public NotificationEvent(String name, T publisher, Object source) {
        super(source);
        this.publisher = publisher;
        this.name = name;
    }



    public T getPublisher() {
        return publisher;
    }



    public String getName() {
        return name;
    }



    public void setName(String name) {
        this.name = name;
    }
}